package com.ssm.gbq.mapper;

import com.ssm.gbq.model.Doctor;

import java.util.List;

/**
 * @Author ssm
 * @Date 2020/5/18 17:53
 */
public interface DoctorMapper {

    /**
     * 获取医生列表
     * @param doctor
     * @return
     */
    List<Doctor> selectDoctorList(Doctor doctor);

    /**
     * 添加医生信息
     * @param doctor
     * @return
     */
    int insertDoctor(Doctor doctor);

    /**
     * 修改医生信息
     * @param doctor
     * @return
     */
    int updateDoctor(Doctor doctor);

    /**
     * 删除医生信息
     * @param id
     * @return
     */
    int delDoctorById(Integer id);

    /**
     * 根据phone或name查询
     * @param
     * @return
     */
    List<Doctor> selectDoctorByPhoneOrName(Doctor doctors);
}
